<?php
if (eregi("login.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: ../index.php");
    die();
}


	// {{{ loginForm()
    //
    // prints the login form.
    //
    // IN: -
    // OUT: -
    //
    function loginForm () {
	    global $html, $html_form;
		
        $str.=
	$html->table(
	    $html->th(_ADMINLOGIN).
		$html->tr(
		    $html->td(
			    _PASSWORD.":"
			,2).
		    $html->td(
			    $html_form->Begin("admin.php","post").
		        $html_form->addPassword("adminpass").
		        $html_form->addSubmit("", " "._LOGIN." ").
		        $html_form->End()
			)
		,0,50)
	,"",1,5,0,"","1px_border");
		
        return $str;
    }
	// }}}
?>